﻿#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <qcustomplot.h>
#include <QDebug>
#include <QTimer>
#include <QMessageBox>
#include <iostream>

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

private slots:
    void on_btnStart_clicked();

    void on_btnStop_clicked();

    void on_b_clicked();

    void init();//初始化

    void currentMain();//曲线主函数

    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

private:
    Ui::Widget *ui;
    QCustomPlot *custom;
    QVector<double> arrX;
    QVector<double> arrYa;
    QVector<double> arrYb;
    QTimer *timer;
    QApplication *app;
};
#endif // WIDGET_H
